/**
 * Created by heh-7356 on 2022/4/15.
 * 接口文件 fetch封装请求
 */

import request from "../utils/request";
// export function Service(projectId){
//   export function isLogin(username,password) {
//     return request.get("/isLogin?username=" + username + "&password=" + password).then(res => {
//       if(res){
//         return res;
//       }
//     });
//   }
// }
export default function Service(projectId) {
  return {
    isLogin(username,password) {
      return request.get("/isLogin?username=" + username + "&password=" + password).then(res => {
        if(res){
          return res;
        }
      });
    },
  }
}
